package com.domain.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "新增用户对象数据")
public class AddUserDTO {

    @Schema(description = "用户昵称", example = "小闲闲")
    private String nickname;

    @Schema(description = "用户邮箱", example = "xxx@.email")
    private String email;

    @Schema(description = "头像地址url", example = "url")
    private String avatar;

    @Min(value = 0, message = "年龄最小为0")
    @Schema(description = "用户年龄", example = "114")
    private Integer age;

    @Schema(description = "用户性别", example = "0（男），1（女）")
    private Integer gender;
}
